<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@ page import="org.teammach.laddercomp.dao.LadderManager"%>
<%@ page import="org.teammach.laddercomp.shared.Ladder"%>
<%@ page import="com.google.appengine.api.datastore.Entity"%>

<%@ page import="java.util.List"%>

<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css">
<script type="text/javascript">

 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-23998388-1']);
 _gaq.push(['_trackPageview']);

 (function() {
   var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
 })();

</script>
</head>
<body>
<div id="wrapper">

<a href="/">
<span id="header">
</span>
</a>
<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
	LadderManager manager = LadderManager.INSTANCE;

 %>

<div id="page">

<div id="content" style="padding-right:10px;width:460px">

<h1 class="title">RULES and regulations 2012</h1>
<ul>
<li>All competitors pass their ladder to the Coordinator (Haydn) by the start of the first game of the season</li>
<li>Cost is $10</li>
<li>The competition is judged at the end of the home and away season, comparing your ladder with the actual one</li>
<li>The person with the highest number of points is the winner</li>

<li>The points system works as follows:-
<ul>
<li>5 points for a correct ladder position</li>
<li>4 points for 1 off the correct position, higher or lower</li>
<li>3 points for 2 off the correct position, higher or lower</li>
<li>2 points for 3 off the correct position, higher or lower</li>
<li>1 points for 4 off the correct position, higher or lower</li>
<li>0 points for 5 off the correct position, higher or lower</li>
<li>Minus 1 points for 6 off the correct position, higher or lower</li>
<li>etc,  to a possible -12 points for a team</li>
</ul>
</li>
<li>Bonus points:-
<ul>
<li>5 bonus points for picking the top of the ladder at the end of the home and away season</li>
<li>5 bonus points for picking the bottom of the ladder (wooden spoon) at the end of the home and away season</li>
<li>5 bonus points for picking the top eight teams of the ladder (finalists) in any order</li>
</ul>
</li>

<li>Prizes:
<ul>
<li>1st - Historically a slab of beer of choice, but organisers are flexible
</li>
<li>2nd - Footy item. e.g. scarf of cherished colours</li>
<li>3rd - Minor footy item. e.g. useless mug where the logo washes off in the dishwasher</li>
</ul>
</li>
</ul>
</div>


<div>


	
	<div id="sidebar">
<h1 class="title">Links</h1>



	<div  style="text-align:center;margin-top:-10px;padding:5px">
		<ul>
			<li><a href="standings.jsp">Current Standings</a></li>
			<li><a href="rules.jsp">Rules and regulations</a> </li>
			<li><a href="blog.jsp">Haydn's weekly blog</a> </li>
			<li><a href="mailto:dscerri@gmail.com">Contact Webmaster</a> </li>
				<%
		if (user != null
				&& (user.getEmail().equalsIgnoreCase("dscerri@gmail.com") || user
						.getEmail().equalsIgnoreCase("haydns33@gmail.com"))) {
	%>
	<li><a href="<%=userService.createLogoutURL(request.getRequestURI() + "?" + request.getQueryString())%>">Log out</a>	</li><%
		} else {
	%>
	<li><a href="<%=userService.createLoginURL(request.getRequestURI() + "?" + request.getQueryString())%>">Admin login</a></li>
	<%
		}
	%>
		</ul>
	</div>
	</div>

			
	</div>
	</div>

</div>
<div id="footer">
<p>&copy;2011 All Rights Reserved &nbsp;&bull;&nbsp; Design by Dave
Scerri Productions &nbsp;&bull;&nbsp; CSS Template from <a
	href="http://www.freecsstemplates.org/">Free CSS Templates</a> .</p>
</div>
</body>
</html>